home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / comms / other / simpleftp / install next >
Text File  |  1999-12-06  |  4KB  |  171 lines

  1. ; Installer Script for SimpleFTP
  2. ; $VER: Install v1.1 (09.09.99) Argh! No! ;)
  3.  
  4. (set #install-docs
  5. (cat "Install documentation?\n"
  6. ))
  7.  
  8. (set #select-lang
  9. (cat "Select language:"
  10. ))
  11.  
  12. (set #not-installed
  13. (cat "\nSimpleFTP has NOT been installed.\n"
  14. ))
  15.  
  16. (set #goodbye
  17. (cat "\nInstallation of SimpleFTP is complete.\n\n"
  18. ))
  19.  
  20. (set #select-dir
  21. (cat "Please select somewhere to install SimpleFTP\n"
  22.      "(A directory is NOT created for you)"
  23. ))
  24.  
  25. (set #my-address
  26. (cat "Rick Hodger\n"
  27.    "e-Mail: rick@thehub.u-net.com\n"
  28.    "Bugs: bugs@thehub.u-net.com\n"
  29.    "Web: http://www.thehub.u-net.com\n"
  30. ))
  31.  
  32. (set #copyright
  33. (cat "SimpleFTP is (C) Copyright 1998-1999 Rick Hodger\n"
  34.      "Written by Rick Hodger\n\n"
  35.      "The author in no way offers any guarantees or warranties "
  36.      "with this program.  By continuing this installation, "
  37.      "you agree that the author is in no way responsable "
  38.      "for any damage caused.\n\n"
  39.      "Do you agree to these terms?"
  40. ))
  41.  
  42. ;**************************************************************************************************
  43.  
  44. (complete 5)
  45. (set agree (askbool (prompt #copyright)
  46.       (help #install-docs-help)
  47.       (choices "Yes" "No")
  48.      )
  49. )
  50.  
  51. (if (= agree 0)       (
  52.   (message #not-installed)
  53.   (exit (quiet))
  54. ))
  55.  
  56. ;******************************************** Locale Stuff *****************************************
  57.  
  58. (complete 10)
  59. (set catalog         (askchoice
  60.   (choices "English (Built-in)" "Deutsch" "Español" "Français" "Italiano" "Norsk" "Português")
  61.   (prompt #select-lang)
  62.   (help   "None here")
  63. ))
  64. (set loc-target "LOCALE:Catalogs/")
  65. (set loc-source "locale/")
  66.  
  67. (if (= catalog 1)     (
  68.   (set loc-target (tackon loc-target "Deutsch"))
  69.   (set loc-source (tackon loc-source "Deutsch"))
  70.   (set loc-use 1)
  71. ))
  72.  
  73. (if (= catalog 2)     (
  74.   (set loc-target (tackon loc-target "Español"))
  75.   (set loc-source (tackon loc-source "Español"))
  76.   (set loc-use 1)
  77. ))
  78.  
  79. (if (= catalog 3)     (
  80.   (set loc-target (tackon loc-target "Français"))
  81.   (set loc-source (tackon loc-source "Français"))
  82.   (set loc-use 1)
  83. ))
  84.  
  85. (if (= caralog 4)     (
  86.   (set loc-target (tackon loc-target "Italiano")
  87.   (set loc-source (tackon loc-source "Italiano")
  88.   (set loc-use 1)
  89. ))
  90.  
  91. (if (= catalog 5)     (
  92.   (set loc-target (tackon loc-target "Norsk"))
  93.   (set loc-source (tackon loc-source "Norsk"))
  94.   (set loc-use 1)
  95. ))
  96.  
  97. (if (= catalog 6)     (
  98.   (set loc-target (tackon loc-target "Português"))
  99.   (set loc-source (tackon loc-source "Português"))
  100.   (set loc-use 1)
  101. ))
  102.  
  103. (if (= loc-use 1)    (
  104.   (set loc-source (tackon loc-source "SimpleFTP.catalog"))
  105. ;  (if (< (exists (loc-target)) 2) makedir loc-target) )
  106.   (copyfiles (
  107.     (source loc-source)
  108.     (dest   loc-target)
  109.   ))
  110. ))
  111.  
  112. ;*************************************** Select destination ****************************************
  113.  
  114. (complete 20)
  115. (set target1         (askdir
  116.    (help   "No help here matey!")
  117.    (prompt #select-dir)
  118.    (default "Miami:")
  119. ))
  120.  
  121. (set target2 target1)
  122.  
  123. (complete 25)
  124. (complete 50)
  125. (copyfiles (
  126.    (prompt "Select files you want installed")
  127.    (help   "Umm....duh?")
  128.    (source  "")
  129.    (dest    target1)
  130.    (choices "SimpleFTP" "SimpleFTP.info" "SimpleFTP.sites" "Icons")
  131.    (CONFIRM)
  132. ))
  133.  
  134. ;(complete 60)
  135. ;(copyfiles (
  136. ;  (prompt "Select extra icons you want installed")
  137. ;  (help   "Yargh"
  138. ;  (source "icons")
  139. ;  (dest   target2)
  140. ;  (choices "upload.info")
  141. ;  (CONFIRM)
  142. ;))
  143.  
  144. (complete 75)
  145. (set docs (askbool (prompt #install-docs)
  146.       (help #install-docs-help)
  147.       (choices "Yes" "No")
  148.      )
  149. )
  150.  
  151. (complete 85)
  152. (if (= docs 1)          (
  153.    (set target3         (askdir
  154.       (prompt "Select Directory for SimpleFTP.html")
  155.       (help "Directory where SimpleFTP.html will be copied to.")
  156.       (default target1)
  157.    ))
  158.    (copyfiles (
  159.       (prompt  "Select files you wish Installed")
  160.       (help "Documentation.")
  161.       (source  "")
  162.       (dest    target3)
  163.       (choices "SimpleFTP.html" "SimpleFTP.html.info" "README.TXT")
  164.       (CONFIRM)
  165.    ))
  166. ))
  167.  
  168. (complete 100) (message #goodbye #my-address)
  169.  
  170. (exit (quiet))
  171.